package persistence;
import javax.persistence.EntityManager;
import javax.persistence.Persistence;

public class EMF {
    
    private static EntityManager em;

    public EMF() {
    
    }
    public static EntityManager getEntityManager(){
        if(em == null){
            em = Persistence.createEntityManagerFactory("society").createEntityManager();
        }
        return em;
    }
    
}
